from models import Post,Page,Website,Category,Slogan,CloseBlog,blogtitle
from django.shortcuts import render_to_response

def blog(request):
 post = Post.objects.all().order_by("-created")
 website = Website.objects.all()
 category = Category.objects.all()
 slogan = Slogan.objects.all()
 closeblog= CloseBlog.objects.all()
 title = blogtitle.objects.all()
 return render_to_response("blog.html", locals())
 
def page(request):
 post = Post.objects.all().order_by("-created")
 website = Website.objects.all()
 category = Category.objects.all()
 slogan = Slogan.objects.all()
 pages = Page.objects.all()
 title = blogtitle.objects.all()
 return render_to_response("page.html", locals())
 